package com.tsfot.spider.utils;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.tsfot.spider.service.DataCollectionService;

public class Main {

	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("config/spring/spring-config.xml");
		DataCollectionService dataCollection = (DataCollectionService) ctx.getBean("dataCollectionService");
		dataCollection.start();
	}
}
